﻿@model IPagedList<Infinity.BusinessLayer.CategoryViewModel>
@using PagedList;
@using PagedList.Mvc;
@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Managerial/Views/Shared/_AdminLayout.cshtml";
}

<section class="course-form">
    <h2> <strong>Category</strong></h2>
    <div>
        <p>
            &nbsp;&nbsp;  @Html.ActionLink("Create new", "NewCategory", null, new { @class = "buttonstyle" })
        </p>
    </div>
    @using (Html.BeginForm("Index", "Category", FormMethod.Post))
    {
        <b>Seaech By:</b> @Html.RadioButton("searchBy", "name", true) <text>Category Name</text>
        @Html.RadioButton("searchBy", "id") <text>category id</text>

        <br />
        @Html.TextBox("searchfor") <input type="submit" value="Search" />
    }
    <div id="CategoryContainer">
            @{ Html.RenderPartial("CategoryList", Model);}
       </div>
</section>
<div style="height:300px"></div>
